package com.rdc.example.dao;

import com.rdc.example.entity.Like;

import java.util.List;

public interface LikeDao {
    boolean insertLike(Integer userId, Integer articleId) throws Exception;

    boolean deleteLike(Integer userId, Integer articleId) throws Exception;

    boolean deleteLikeByArticleId(Integer articleId) throws Exception;

    List<Like> listLikeByUserId(Integer userId) throws Exception;

    List<Integer> listArticleIdByUserId(Integer userId) throws Exception;

    boolean likeCheck(Integer userId, Integer articleId) throws Exception;
}
